package Blog.Managerv6;

public class Login {
	public void showUI(){
		javax.swing.JFrame jlog=new javax.swing.JFrame("Log in");
		jlog.setSize(350, 200);
		
		java.awt.FlowLayout fl=new java.awt.FlowLayout();
		jlog.setLayout(fl);
		javax.swing.JLabel j_acc=new javax.swing.JLabel("Account    ");
		javax.swing.JLabel j_psw=new javax.swing.JLabel("Password");
		javax.swing.JTextField t_acc=new javax.swing.JTextField(15);
		javax.swing.JTextField t_psw=new javax.swing.JTextField(15);
		javax.swing.JButton b_login=new javax.swing.JButton("Log in");
		javax.swing.JButton b_signin=new javax.swing.JButton("Sign in");
		javax.swing.JPanel panel1=new javax.swing.JPanel();
		panel1.setPreferredSize(new java.awt.Dimension(250,35));
		javax.swing.JPanel panel2=new javax.swing.JPanel();
		panel2.setPreferredSize(new java.awt.Dimension(250,35));
		javax.swing.JPanel panel3=new javax.swing.JPanel();
		panel3.setPreferredSize(new java.awt.Dimension(250,35));
		
		panel1.add(j_acc);
		panel1.add(t_acc);
		panel2.add(j_psw);
		panel2.add(t_psw);
		panel3.add(b_login);
		panel3.add(b_signin);
		jlog.add(panel1);
		jlog.add(panel2);
		jlog.add(panel3);
		
		SigninListener slistener=new SigninListener();
		b_signin.addActionListener(slistener);
//		b_login.addActionListener();
		
		jlog.setVisible(true);
		jlog.setLocationRelativeTo(null);
		jlog.setDefaultCloseOperation(3);
	}
	public static void main(String args[]){
		Login lu=new Login();
		lu.showUI();
	}
	
}
